package com.rlyy.rsj.common;

public enum RemindType {

    /**
     * 包量预警
     */
    USAGE("1","包量预警"),
    /**
     * 生效期预警
     */
    EFFECT("2","生效期预警");


    private String code;
    private String info;

    RemindType(String code, String info){
        this.code = code;
        this.info = info;
    }

    public String getCode(){
        return code;
    }

    public String getInfo(){
        return info;
    }

    public static String getInfoByCode(String code){
        for (RemindType value : RemindType.values()) {
            if(value.getCode().equals(code)){
                return value.getInfo();
            }
        }
        return null;
    }
}
